package com.ml.mall.entity.company;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * todo 未处理字段：syarikatCode emailAddress inviteCode needLogistics needPay  isAuth isPaid
 *  后端已处理：companyId companyShippingId countryId
  */
@Data
@TableName(value = "sys_company")
public class SysCompany implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_at",fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 更新时间
     */
    @TableField(value = "update_at",fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "is_delete",fill = FieldFill.INSERT)
    private Integer isDelete;

    /**
     * 公司名称
     */
    @TableField(value = "company_name")
    private String companyName;

    /**
     * 马来营业执照号码
     */
    @TableField(value = "syarikat_code")
    private String syarikatCode;

    /**
     * 注册码
     */
    @TableField(value = "registartion_no")
    private String registartionNo;

    /**
     * 邀请码
     */
    @TableField(value = "invite_code")
    private String inviteCode;

    /**
     * 电话
     */
    @TableField(value = "phone_no")
    private String phoneNo;

    /**
     * 图片地址
     */
    @TableField(value = "logo_url")
    private String logoUrl;

    /**
     * 行业主键
     */
    @TableField(value = "industry_id")
    private Long industryId;

    /**
     * 邮箱地址
     */
    @TableField(value = "email_address")
    private String emailAddress;

    /**
     * 公司id
     */
    @TableField(value = "company_id")
    private Long companyId;

    /**
     * 状态：0申请；1通过；2禁用
     */
    @TableField(value = "`state`")
    private Integer state;

    /**
     * 证书地址：或者身份证图片URL
     */
    @TableField(value = "ssm_url")
    private String ssmUrl;

    /**
     * 公司类型：4：买家；3：卖家
     */
    @TableField(value = "company_type")
    private Integer companyType;

    /**
     * 商是否需要支付：0不需要；1需要
     */
    @TableField(value = "need_pay")
    private Integer needPay;

    /**
     * 商是否需要物流：0不需要；1需要
     */
    @TableField(value = "need_logistics")
    private Integer needLogistics;

    /**
     * 经销商是否被认证
     */
    @TableField(value = "is_auth")
    private Integer isAuth;

    /**
     * 是否支付
     */
    @TableField(value = "is_paid")
    private Integer isPaid;

    /**
     * 订阅类型：1免费；2收费
     */
    @TableField(value = "sub_type")
    private Integer subType;

    /**
     * 0：系统配送 1：商家自配送
     */
    @TableField(value = "supplier_delivery_type")
    private Integer supplierDeliveryType;

    /**
     * 国家ID
     */
    @TableField(value = "country_id")
    private Long countryId;

    @TableField(value = "stars_num")
    private Integer starsNum;

    @TableField(value = "states_can_send")
    private String statesCanSend;   //公司 洲属名；通过选择传入 直接名字

    @TableField(value = "types_business")
    private String typesBusiness;   //公司 类型

    @TableField(value = "company_level")
    private Integer companyLevel; //公司等级

    @TableField(value = "refuse_reason")
    private String refuseReason; //公司拒绝原因

    @TableField(value = "remark")
    private String remark; // 公司备注

    @TableField(value = "is_verify")
    private Integer isVerify;

    @TableField(value = "states_id")
    private Integer statesId;  //洲属ID

    private static final long serialVersionUID = 1L;
}